package com.yegs.jindie.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;


@Entity
public class JobVo implements Serializable {

    public JobVo() {
    }
    public JobVo(String name,String cron) {
        this.jobName = name;
        this.jobGroupName = name;
        this.triggerName = name;
        this.triggerGroupName = name;
        this.className = name;
        this.cron = cron;
        this.states = "0";
    }

    public JobVo(String name, String className, String cron) {
        this.jobName = name;
        this.jobGroupName = name;
        this.triggerName = name;
        this.triggerGroupName = name;
        this.className = className;
        this.cron = cron;
        this.states = "0";

    }
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Long id;

    private String jobName;

    private String jobGroupName;

    private String triggerName;

    private String triggerGroupName;

    private String className;

    private String cron;

    private String states;

    private Date date;

    private int last;


    public String getStates() {
        return states;
    }

    public void setStates(String states) {
        this.states = states;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobGroupName() {
        return jobGroupName;
    }

    public void setJobGroupName(String jobGroupName) {
        this.jobGroupName = jobGroupName;
    }

    public String getTriggerName() {
        return triggerName;
    }

    public void setTriggerName(String triggerName) {
        this.triggerName = triggerName;
    }

    public String getTriggerGroupName() {
        return triggerGroupName;
    }

    public void setTriggerGroupName(String triggerGroupName) {
        this.triggerGroupName = triggerGroupName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getLast() {
        return last;
    }

    public void setLast(int last) {
        this.last = last;
    }

    @Override
    public String toString() {
        return "JobVo{" +
                "id=" + id +
                ", jobName='" + jobName + '\'' +
                ", jobGroupName='" + jobGroupName + '\'' +
                ", triggerName='" + triggerName + '\'' +
                ", triggerGroupName='" + triggerGroupName + '\'' +
                ", className='" + className + '\'' +
                ", cron='" + cron + '\'' +
                ", states='" + states + '\'' +
                '}';
    }



}
